<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?></head>
<div id="page1">
<div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
</div>

	<div id="page">
	<div id="page-bgtop">
		<div id="content">
        <div class="post">
        <fieldset>
		<legend><strong>PEMBAYARAN</strong></legend>
        <form action="<?php echo base_url()?>laporan/save_pembayaran" method="post">            
 		<table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="center">
        	
			<tr>
            	<td>&nbsp;Tanggal : </td>
                <td>&nbsp;<input type="text" name="tanggal" id="demo3" size="25" /><a href="javascript:NewCssCal('demo3','yyyymmdd')"> <img src="<?php echo base_url();?>images/cal.gif" width="16" height="16" alt="Pick a date" /></a></td>
              <td>&nbsp;<div id="result3"></div></td>
            </tr>
            <tr>
        		<td>&nbsp;Nama Bank</td>
        		<td>&nbsp;<input name="nama_bank" type="text" /></td>
     	 	</tr>
            <tr>
        		<td>&nbsp;Nominal Bayar</td>
        		<td>&nbsp;<input name="nominal_bayar" type="text" /></td>
     	 	</tr>
            <tr>
        		<td>&nbsp;Keterangan</td>
        		<td>&nbsp;
       		    <textarea name="keterangan" cols="45" rows="5"></textarea></td>
     	 	</tr>
            <tr>
        		<td>&nbsp;</td>
        		<td>&nbsp;</td>
     	 	</tr>
            <tr>
           		<th></th>
            	<td><input type="submit" value="Simpan" class="button"/> 
                <input type="hidden" name="id_cabang" id="id_cabang" value="<?php echo $id_cabang;?>"/>
        			 &nbsp;
              		<input class="button" type="button" value="Cancel" onclick="location.href='index';"/>                </td>
           </tr>
		</table></form>
        <table width="95%" border="0" cellpadding="1" cellspacing="1" id="data" align="center">
			<tr class="table">
                	<th>Tanggal</th>
                    <th>Nama Bank</th>
                    <th>Nominal Bayar</th>
                    <th>Keterangan</th>
                </tr>
                <?php
                 foreach($default as  $d):
                ?>
                <tr class="data">
                    <td align="center"><?php echo $d->datetanggal?></td>
                    <td align="center"><?php echo $d->nama_bank?></td>
                    <td align="center"><?php echo "Rp. ".number_format($d->nominal_bayar,2 , ',' , '.')?></td>
                     <td align="left"><?php echo $d->keterangan?></td>
                </tr>
                <?php endforeach;?>
             </table>	
         
        
   </fieldset>
      
            
           
		  </div>
			</div>
			
		</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_laporan'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->

